www.gusucode.com > seacms 海洋PHP影视视频网站建站系统 v6.61PHP源码程序 > seacms 海洋PHP影视视频网站建站系统 v6.61/海洋cms V6.61/海洋cms V6.61/upload/include/inc/inc_fun_funString.php
<?php if(!defined('sea_INC')) { exit("Request Error!"); } function SpHtml2Text($str) { $str = preg_replace("/<sty(.*)\\/style>|<scr(.*)\\/script>|<!--(.*)-->/isU","",$str); $str = preg_replace("|</{0,1}[^>]*?>|", '', $str); $str = preg_replace("/[ ]+/s"," ",$str); return $str; } ?>